package com.intretech.umsin.code.generator.entity;


import java.io.Serializable;

/**
 * @version V1.0
 * @ClassName: ColumnSchema
 * @Description:(数据库中表字段定义信息)
 * @author: 李启联
 * @date: 2020-01-22 09:29
 * @Copyright: Copyright (c), 2020
 */
public class ColumnSchema implements Serializable {

	//列名称
	private String columnName;
	
	//是否可为空
	private Boolean isNullable;
	
	//数据类型
	private String dataType;
	
	//数据长度
	private Integer length;
	
	//列说明备注
	private String columnComment;
	
	//所属表名称
	private String tableName;

	public String getColumnName() {
		return columnName;
	}

	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}

	public Boolean getIsNullable() {
		return isNullable;
	}

	public void setIsNullable(Boolean isNullable) {
		this.isNullable = isNullable;
	}

	public String getDataType() {
		return dataType;
	}

	public void setDataType(String dataType) {
		this.dataType = dataType;
	}

	public Integer getLength() {
		return length;
	}

	public void setLength(Integer length) {
		this.length = length;
	}

	public String getColumnComment() {
		return columnComment;
	}

	public void setColumnComment(String columnComment) {
		this.columnComment = columnComment;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public ColumnSchema() {
		super();
	}
	
	
	
	@Override
	public String toString() {
		return "ColumnSchema [columnName=" + columnName + ", isNullable=" + isNullable + ", dataType=" + dataType
				+ ", length=" + length + ", columnComment=" + columnComment + ", tableName=" + tableName + "]";
	}
	
	
	
}
